package cn.tedu.store.mapper;

import cn.tedu.store.entity.*;
import com.baomidou.dynamic.datasource.annotation.DS;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
@DS("master")
@Mapper
public interface MeetingMapper {
    Integer insert(@Param(value = "meeting") Meeting meeting);
    Integer insert_MeetingRecode(@Param(value = "meetingCheckRecode") MeetingCheckRecode meetingCheckRecode);
    List<Employee> selectEmployee(@Param(value = "phone") String phone);
    List<Department> selectDepartment();
    String meetingCode();

    Meeting findBymeetingCode( String meetingCode);
    long selectSignEmployeeSize(String mCode, String iphone);
    MeetingCheckRecode selectSignEmployee(String mCode, String iphone);

    void insertMeeting(Meeting meeting);

    List<SMeetingcheckrecode> getAll(@Param("iPhone") String iphone);

    void leave(@Param("mCode") String mCode,@Param("iphone") String iphone,@Param("code") String code,@Param("date") Date date);


    //Meeting selectMyRepairOrderById(@Param(value = "repairApplyId") String repairApplyId, @Param(value = "repairState") String repairState);
}
